package com.xy.api.service.order;

import com.xy.api.model.dto.mainData.ProductTreeNodeDTO;
import com.xy.api.model.dto.order.PlaceFollowOrderInstanceDTO;
import com.xy.api.model.request.order.PFOInstanceRequest;
import com.xy.api.model.request.order.PFOProductRequest;
import com.xy.api.model.request.order.SavePFOInstanceRequest;
import com.xy.api.model.request.order.SelectPFOInstanceRequest;
import com.xy.api.model.response.Rows;

import java.util.List;

public interface IPlaceFollowOrderInstanceService {

    /**
     * 查询列表
     *
     * @param request
     * @return
     */
    Rows<PlaceFollowOrderInstanceDTO> queryPFOInstanceList(PFOInstanceRequest request);

    /**
     * 删除详情
     *
     * @param id
     */
    void deletePFOInstance(Long id);

    /**
     * 批量保存
     *
     * @param request
     */
    void savePFOInstance(SavePFOInstanceRequest request);

    /**
     * 选择产品
     *
     * @param request
     */
    List<PlaceFollowOrderInstanceDTO> selectPFOInstance(SelectPFOInstanceRequest request);

    /**
     * 查询指定供应商下的产品（标记已选）
     *
     * @param request
     * @return
     */
    List<ProductTreeNodeDTO> queryProductTree(PFOProductRequest request);

}
